import request from '../utils/request.js'

// 获取轮播图图片数据
export const getSwiperImg = (id) => {
	return request.get(`/api/getthumbimages/${id}`)
}

// 获取商品详情信息
export const getGoodInfo = (id) => {
	return request.get(`/api/getgoodsinfo/${id}`)
}

//  添加历史足迹
export const addHistory = (goods_id) => {
	return request.post(`/api/addhistory?goods_id=${goods_id}`)
}